package com.hongxun.modules.api.service.impl;

import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.hongxun.modules.api.dao.BProjectApplicationDao;
import com.hongxun.modules.api.entity.BProjectApplicationEntity;
import com.hongxun.modules.api.service.BProjectApplicationService;



@Service("bProjectApplicationService")
public class BProjectApplicationServiceImpl implements BProjectApplicationService {
	@Autowired
	private BProjectApplicationDao bProjectApplicationDao;
	
	@Override
	public BProjectApplicationEntity queryObject(String guid){
		return bProjectApplicationDao.queryObject(guid);
	}
	
	@Override
	public List<BProjectApplicationEntity> queryList(Map<String, Object> map){
		return bProjectApplicationDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bProjectApplicationDao.queryTotal(map);
	}
	
	@Override
	public void save(BProjectApplicationEntity bProjectApplication){
		bProjectApplication.setGuid(UUID.randomUUID().toString());
		bProjectApplicationDao.save(bProjectApplication);
	}
	
	@Override
	public void update(BProjectApplicationEntity bProjectApplication){
		bProjectApplicationDao.update(bProjectApplication);
	}
	
	@Override
	public void delete(String guid){
		bProjectApplicationDao.delete(guid);
	}
	
	@Override
	public void deleteBatch(String[] guids){
		bProjectApplicationDao.deleteBatch(guids);
	}
	
}
